﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartHotel.Model
{
    /// <summary>
    /// 商品的实体类 对应的就是商品表
    /// </summary>
    public class Product
    {
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 商品编码
        /// </summary>
        public String Code {  get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string Name { get; set; }

        public string ImgUrl { get; set; }
        /// <summary>
        /// 商品描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 商品价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public int Stock {  get; set; }
        /// <summary>
        /// 商品状态
        /// </summary>
        public int Status {  get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
        /// <summary>
        /// 逻辑删除 默认是false 
        /// </summary>
        public bool IsDeleted { get; set; } = false;
        /// <summary>
        /// 所需积分
        /// </summary>
        public int NeedJifen {  get; set; }
    }
}
